﻿
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> 
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ include file="../language.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title><fmt:message key="i18n.password2vil"/>-<fmt:message key="i18n.title"/></title>
<link rel="shortcut icon" href="../index/favicon.png" />
<!-- main styles -->
<!--[if lte IE 8]>
    <link rel="stylesheet" href="css/ie.css" />
    <script src="js/ie/html5.js"></script>
    <script src="js/ie/respond.min.js"></script>
<![endif]-->
<%
session.setAttribute("end", "交易密码验证");
session.setAttribute("middle", "个人管理");
%>
<jsp:include page="common.jsp"></jsp:include>
</head>
<body style="background:#ffffed;">
<jsp:include page="page_head.jsp"></jsp:include>
<div class="row">
		<div class="col-md-5">
		<div class="box border primary">
			<div class="box-title">
				<h4><i class="fa fa-bars"></i><fmt:message key="i18n.password2vil"/></h4>
			</div>
			<div class="box-body big">
				<div class="col-md-12" style="text-align: center;">
				</div>
				<form class="form-horizontal" role="form" action="registerUser!login2.action" method="post" id="my-form">
				<input type="hidden" name="pageUrl" value="<%=request.getParameter("pageUrl")%>" />
            	<input type="hidden" name="registerUserDTO.loginName" value="${session.loginName}" />
		        <input type="hidden" name="pwdLevel" value="password2" />
		        <div class="form-group">
					<label class="col-sm-3 control-label"><fmt:message key="i18n.send2Password"/>：</label>
					<div class="col-sm-6">
					  <input type="password" id="password2" name="registerUserDTO.password2" id="password" class="form-control" />
					</div>
				  </div>
				  <div class="form-group">
					<label class="col-sm-3 control-label"></label>
					<div class="col-sm-9">
						<button class="btn btn-primary" onclick="userLogin('no')" style="width:15em;"><fmt:message key="i18n.submitVil"/></button>
					</div>
				  </div>
				  </div>
				 </form>
			</div>
		</div>
	</div>
<jsp:include page="page_foot.jsp"></jsp:include>
<script type="text/javascript" src="../scripts/user/common.js"></script>
<script type="text/javascript" src="../scripts/user/login.js"></script>
      
<script type="text/javascript">
var sessionLoginName = '${session.loginName}';
if(sessionLoginName=='' || sessionLoginName==null){
	alert('System login timeout or not, please login again after this operation(系统超时或未登录，请登录后再进行此操作)!');
	window.parent.location.href="login.jsp";
}

$(function(){
	var _loginName = '${param.loginName}';
	var _error = '${param.error}';
	if(_error=='true'){
		//模态框影响界面按钮的样式加载
		setTimeout(function(){
			alert('交易密码不正确,请重新输入!');
		},1);
	}
	document.onkeydown = function(evt){
		var evt = window.event?window.event:evt;
		if(evt.keyCode==13){
			userLogin('no');
		}
	}
	$('#password2').val('');
});
</script>
</body>
</html>
